#ifndef __TEXTACTOR_H__
#define __TEXTACTOR_H__

#include <FreeTypeGX.h>
#include "actor.h"

// Text
class TextActor : public Actor
{
public:
  TextActor();
  ~TextActor();

  void activate();
  void update();
  void Draw(); // Uses FreeTypeGX
  wchar_t *msg;
  FreeTypeGX *textGX;
  f32 x,y; // Text location


  void set(char* text, f32 x, f32 y); // Set message to display; also converts to wchar_t*
  void set(const char* text, f32 x, f32 y); // override to allow hard-coded text
  bool isActive() {return state != TA_NULL && state != TA_SET;}
  bool isFinished() {return state == TA_SET;}

// Stubs since these aren't used by this class but are inherited from Actor:
  f32 getX() {return x;}
  f32 getY() {return y;}
  f32 getR() {return r;}
  f32 getRotation() {return 0;}
  int getT() {return t;}
  f32 r; // Dummy
  int t; // Dummy

protected:

  enum {
    TA_NULL,
    TA_SET
  } state;
  
};

#endif
